package com.biyabi.config;/*
package com.baizhi.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;
@Configuration
@EnableAutoConfiguration
public class JedisConfig {
    @Value("${redis.host}")
    private  String host;
    @Value("${redis.port}")
    private  Integer port;
    @Value("${redis.dbIndex}")
    private Integer dbIndex;
    @Bean
    public Jedis jedis(){
        Jedis jedis = new Jedis(host, port);
        jedis.select(dbIndex);
        return jedis;
    }
}
*/
